package com.huiketong.cofpasgers.repository;

import com.huiketong.cofpasgers.entity.WareHouses;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WareHousesRepository extends JpaRepository<WareHouses,Integer> {
    @Override
    <S extends WareHouses> S save(S s);

    List<WareHouses> findWareHousesByCompanyId(Integer companyId);
}
